<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
       .yanse{
            width: 200px;
            height: 300px;
            background-color: green;
            transition: all 1s ease 0s ;
            margin: 100px auto;
        }
        .yanse:hover{
            background-color: red;
            /* transform: translate(100px,100px);
            transform: scale(2); */
            transform: translate(100px,100px) scale(1.3) rotate(60deg);   /*先移动后缩放*/
            transform-origin: right top;
        }
    </style>
</head>
<body>
    <div class="yanse"></div>
</body>
</html>